package icu.sehnen.service.impl;

import icu.sehnen.mapper.WallpaperMapper;
import icu.sehnen.model.WallpaperModel;
import icu.sehnen.service.WallpaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WallpaperServiceImpl implements WallpaperService {
    @Autowired
    WallpaperMapper wallpaperMapper;
    @Override
    public List<WallpaperModel> findAll() {
      return   wallpaperMapper.findAll();
    }

    @Override

    public void update(Long id,String imgUrl) {
        wallpaperMapper.update(id,imgUrl);
    }
}
